﻿package net.cooltain.warhammer.running.entity;

import net.cooltain.warhammer.framework.constant.ConstantPlayZone;

/**
 * 王国区
 * @author cooltian
 *
 */
public class KingdomAreaZone extends AreaZoneEntity{

	/** 初始化的能量图示 */
	public static final int powerInit = 3; 
	
	private int powerCurrent = powerInit;
	
	public KingdomAreaZone(MotionPlayerZone player) {
		super(player);
		this.zoneConstant = ConstantPlayZone.KINDOM_ZONE;
	}
	
	/**
	 * 计算该区能量图示
	 * @return
	 */
	public int getPowerSum(){
		int count = powerCurrent;
		for(MotionCard card : this.cards){
			if(!card.isDevelopment()){
				count += card.getPowerSum();				
			}
		}
		return count;
	}
}
